<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .bg{
            width: 100%;
            height: 100px;
            position: relative;
            
        }
        .bg img{
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            z-index: -1;
        }
        .box{
            width: 20px;
            height: 20px;
            background-color: sienna;
            position: absolute;
            top: 5px;
            right: 10px;
            text-align: center;
            font-size: 16px;
            cursor: pointer;
        }

    </style>
</head>
<body>
    <div class="bg">
        <div class="box">X</div>
        <img src="./images/jd.png" alt="">
    </div>
    <script>
        const box = document.querySelector('.box')
        const img = document.querySelector('.img')
        box.addEventListener('click',function(){
            img.style.display = 'none'
        })
    </script>
</body>
</html>